package net.huashitong.ssydt.exam.entity.vo;

import io.swagger.annotations.ApiModelProperty;
import net.huashitong.ssydt.exam.entity.SsExamCollectionQuestion;
import net.huashitong.ssydt.exam.entity.SsExamQuestion;

import java.io.Serializable;
import java.util.List;

/**
 * @author <a href="mailto:yhy23456@163.com">huiyang.yu</a>
 * @since 2017.09.12
 */
public class QuestionCollectionVO implements Serializable {

    private static final long serialVersionUID = 2011600586088932346L;
    @ApiModelProperty(value = "收藏集名称")
    private String collectionTitle;//收藏集名称
    @ApiModelProperty(value = "题目数")
    private Integer questionNumber;//题目数
    @ApiModelProperty(value = "所属年月")
    private String belongYearMonth;//所属年月
    @ApiModelProperty(value = "选择题列表")
    private List<CollectionQuestion> questions;

    public String getCollectionTitle() {
        return collectionTitle;
    }

    public void setCollectionTitle(String collectionTitle) {
        this.collectionTitle = collectionTitle;
    }

    public Integer getQuestionNumber() {
        return questionNumber;
    }

    public void setQuestionNumber(Integer questionNumber) {
        this.questionNumber = questionNumber;
    }

    public String getBelongYearMonth() {
        return belongYearMonth;
    }

    public void setBelongYearMonth(String belongYearMonth) {
        this.belongYearMonth = belongYearMonth;
    }

    public List<CollectionQuestion> getQuestions() {
        return questions;
    }

    public void setQuestions(List<CollectionQuestion> questions) {
        this.questions = questions;
    }

    public static class CollectionQuestion extends BaseQuestion {

        private static final long serialVersionUID = -3123238515934605782L;

        private Long collectionQuestionId;//收藏表Id

        public CollectionQuestion(SsExamCollectionQuestion ssExamErrorQuestion, SsExamQuestion ssExamQuestion) {
            super(ssExamQuestion);
            this.collectionQuestionId = ssExamErrorQuestion.getId();
        }

        public Long getCollectionQuestionId() {
            return collectionQuestionId;
        }

        public void setCollectionQuestionId(Long collectionQuestionId) {
            this.collectionQuestionId = collectionQuestionId;
        }

    }
}
